package mn.idax.exchange.otc.service;

import mn.idax.exchange.otc.domain.BusinessApplyListResponse;
import mn.idax.exchange.otc.domain.BusinessConditionDTO;
import mn.idax.exchange.otc.vo.PageVo;

import java.util.Map;

/***
 * 商户申请服务
 * @author .shohua
 * @time 2018.11.13
 */
public interface BusinessApplyService {
    /**
     * 获取申请条件DTO
     *
     * @param userId
     * @return
     */
    BusinessConditionDTO getBusinessCondition(int userId);

    /**
     * 提交申请
     *
     * @param userId
     * @return
     */
    int submitApply(int userId) throws Exception;

    /**
     * 获取用户申请商家记录
     *
     * @param paramMap
     * @return
     */
    PageVo<BusinessApplyListResponse> getBusinessListByUserId(Map<String, Integer> paramMap);

    Integer isbusinesser(Integer userId);
}
